<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html,body{
            height: 100%;
            width: 100%;
        }
        #container{
            height: 100%;
            overflow: auto;
            scroll-snap-type: y proximity; /*mandatory*/
        }
        .box{
            height: 500px;
            width: 100%;
            line-height: 500px;
            text-align: center;
            color: black;
            font-size: 24px;
            font-weight: bold;
            border-top: 1px solid black;
            border-bottom: 1px solid black;
            scroll-snap-align: start;
            /*scroll-snap-stop: always;*/
        }
    </style>
</head>
<body>
<div id="container">
    <div class="box">1</div>
    <div class="box">2</div>
    <div class="box">3</div>
    <div class="box">4</div>
    <div class="box">5</div>
    <div class="box">6</div>
    <div class="box">7</div>
</div>
</body>
</html>